package C;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
import java.util.StringJoiner;

public class C11My {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int minAverageLost = Integer.parseInt(sc.nextLine());
        int[] nums = Arrays.stream(sc.nextLine().split(" ")).mapToInt(Integer::parseInt).toArray();

        System.out.println(getResult(minAverageLost,nums));



    }

    public static String getResult(int min,int[] nums) {
        int n = nums.length;
        int[] sums = new int[n+1];
        for (int i=1;i<sums.length;i++) {
            sums[i] = sums[i-1]+nums[i-1];
        }

        ArrayList<int[]> ans = new ArrayList<>();

        int sum = 0;
        int max = 0;
        for (int i=0;i<nums.length;i++) {
            for (int j=i;j<nums.length;j++) {
                sum = sums[j+1]-sums[i];
                int len = j-i+1;
                if (sum>min*len) {
                    continue;
                }
                if (len>max) {
                    max = len;
                    ans = new ArrayList<>();
                }
                if (max == len) {
                    ans.add(new int[]{i, j});
                }
            }
        }
        if (ans.size()==0) return "NULL";

        ans.sort((a,b) -> a[0]-b[0]);

        StringJoiner sj = new StringJoiner(" ");
        for (int[] an:ans) {
            sj.add(an[0]+"-"+an[1]);
        }
        return sj.toString();
    }

}
